// pages/jiazhangbang/dps/jiazhang/jiazhang.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    newsitem: [
      {
        imgurl: 'http://cdn.mogo.club/f236c7b3af75c4116ae635bacc813ea7.png',
        jumpurl: 'item1/item1',
        title: '亲子关系比教育方法更重要！',
        time: '2018.04.04 13:54'
      }, {
        imgurl: 'http://cdn.mogo.club/96a94e534f367df91db044c7015978bc.png',
        jumpurl: 'item1/item1',
        title: '亲子关系比教育方法更重要！',
        time: '2018.04.04 13:54'
      }, {
        imgurl: 'http://cdn.mogo.club/c7da13fef684c8e9e766c0a7ea4256f1.png',
        jumpurl: 'item1/item1',
        title: '亲子关系比教育方法更重要！',
        time: '2018.04.04 13:54'
      }, {
        imgurl: 'http://cdn.mogo.club/96a94e534f367df91db044c7015978bc.png',
        jumpurl: 'item1/item1',
        title: '亲子关系比教育方法更重要！',
        time: '2018.04.04 13:54'
      }, {
        imgurl: 'http://cdn.mogo.club/c7da13fef684c8e9e766c0a7ea4256f1.png',
        jumpurl: 'item1/item1',
        title: '亲子关系比教育方法更重要！',
        time: '2018.04.04 13:54'
      }, {
        imgurl: 'http://cdn.mogo.club/96a94e534f367df91db044c7015978bc.png',
        jumpurl: 'item1/item1',
        title: '亲子关系比教育方法更重要！',
        time: '2018.04.04 13:54'
      }, {
        imgurl: 'http://cdn.mogo.club/c7da13fef684c8e9e766c0a7ea4256f1.png',
        jumpurl: 'item1/item1',
        title: '亲子关系比教育方法更重要！',
        time: '2018.04.04 13:54'
      }
    ]
  },
  onLoad: function (options) {
    var that = this;
    wx.request({
      url: 'https://jiaoyu.mogochina.com/public/index.php/api/get_banner?category=首页',
      success: function(res) {
        console.log(res.data.data.id)
      }
    })
  }
})